﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using clf.weighing.entity;

namespace weighing
{
    public class ScaleBrandDao:BaseDao<ScaleBrand>
    {
        #region instance

        private static ScaleBrandDao? instance;
        public static ScaleBrandDao Instance => instance ??= new ScaleBrandDao();

        public override string GetTableName()
        {
            return TableName.scale_brand.ToString();
        }
        #endregion

        public List<ScaleBrand> GetList()
        {
            String sql = SqlBuilder.GetSelectSqlWithSoftDeleteCondition(GetTableName());
            var data = Sqlite.Select<ScaleBrand>(sql);
            return data;
        }
    }
}
